Mapbox Maps SDK for macOS Docs Maps SDK for macOS Reference

View on GitHub

Install in Dash

Mapbox Maps SDK for macOS Reference Styling the Map Reference
  • Guides
    • Working with GeoJSON Data
    • Predicates and Expressions
    • For Style Authors
    • Using Style Functions at Runtime
    • Tile URL Templates
    • Info.plist Keys
  • Maps
    • MGLAccountManager
    • MGLMapCamera
    • MGLMapView
    • MGLMapViewDelegate
    • MGLMapSnapshot
    • MGLMapSnapshotOptions
    • MGLMapSnapshotter
  • Shapes and Annotations
    • MGLAnnotation
    • MGLAnnotationImage
    • MGLOverlay
    • MGLShape
    • MGLMultiPoint
    • MGLPointAnnotation
    • MGLPointCollection
    • MGLPolygon
    • MGLPolyline
    • MGLMultiPolygon
    • MGLMultiPolyline
    • MGLShapeCollection
  • Styling the Map
    • MGLStyle
    • MGLLight
  • Content Primitives
    • MGLFeature
    • MGLPointFeature
    • MGLPolygonFeature
    • MGLPolylineFeature
    • MGLMultiPolygonFeature
    • MGLMultiPolylineFeature
    • MGLPointCollectionFeature
    • MGLShapeCollectionFeature
  • Content Sources
    • MGLSource
    • MGLShapeSource
    • MGLComputedShapeSource
    • MGLTileSource
    • MGLRasterTileSource
    • MGLRasterDEMSource
    • MGLVectorTileSource
    • MGLImageSource
  • Style Layers
    • MGLStyleLayer
    • MGLForegroundStyleLayer
    • MGLBackgroundStyleLayer
    • MGLRasterStyleLayer
    • MGLVectorStyleLayer
    • MGLCircleStyleLayer
    • MGLFillStyleLayer
    • MGLFillExtrusionStyleLayer
    • MGLHeatmapStyleLayer
    • MGLHillshadeStyleLayer
    • MGLLineStyleLayer
    • MGLSymbolStyleLayer
  • Offline Maps
    • MGLOfflineRegion
    • MGLOfflineStorage
    • MGLOfflinePack
    • MGLOfflinePackProgress
    • MGLOfflinePackState
    • MGLTilePyramidOfflineRegion
  • Geometry
    • MGLCoordinateBounds
    • MGLCoordinateBoundsEqualToCoordinateBounds
    • MGLCoordinateBoundsGetCoordinateSpan
    • MGLCoordinateBoundsIntersectsCoordinateBounds
    • MGLCoordinateBoundsIsEmpty
    • MGLCoordinateBoundsMake
    • MGLCoordinateBoundsOffset
    • MGLCoordinateInCoordinateBounds
    • MGLCoordinateSpan
    • MGLCoordinateSpanEqualToCoordinateSpan
    • MGLCoordinateSpanMake
    • MGLCoordinateSpanZero
    • MGLDegreesFromRadians
    • MGLRadiansFromDegrees
    • MGLStringFromCoordinateBounds
  • Formatters
    • MGLClockDirectionFormatter
    • MGLCompassDirectionFormatter
    • MGLCoordinateFormatter
    • MGLDistanceFormatter
  • Other Categories
    • NSValue(MGLAdditions)
    • NSValue(MGLCircleStyleLayerAdditions)
    • NSValue(MGLFillExtrusionStyleLayerAdditions)
    • NSValue(MGLFillStyleLayerAdditions)
    • NSValue(MGLHillshadeStyleLayerAdditions)
    • NSValue(MGLLineStyleLayerAdditions)
    • NSValue(MGLSymbolStyleLayerAdditions)
  • Other Classes
    • MGLAttributionInfo
  • Other Constants
    • MGLErrorDomain
    • MGLExpressionInterpolationModeCubicBezier
    • MGLExpressionInterpolationModeExponential
    • MGLExpressionInterpolationModeLinear
    • MGLOfflinePackErrorNotification
    • MGLOfflinePackMaximumMapboxTilesReachedNotification
    • MGLOfflinePackProgressChangedNotification
    • MGLOfflinePackUserInfoKeyError
    • MGLOfflinePackUserInfoKeyMaximumCount
    • MGLOfflinePackUserInfoKeyProgress
    • MGLOfflinePackUserInfoKeyState
    • MGLShapeSourceOptionBuffer
    • MGLShapeSourceOptionClipsCoordinates
    • MGLShapeSourceOptionClusterRadius
    • MGLShapeSourceOptionClustered
    • MGLShapeSourceOptionMaximumZoomLevel
    • MGLShapeSourceOptionMaximumZoomLevelForClustering
    • MGLShapeSourceOptionMinimumZoomLevel
    • MGLShapeSourceOptionSimplificationTolerance
    • MGLShapeSourceOptionWrapsCoordinates
    • MGLStyleDefaultVersion
    • MGLTileSourceOptionAttributionHTMLString
    • MGLTileSourceOptionAttributionInfos
    • MGLTileSourceOptionCoordinateBounds
    • MGLTileSourceOptionDEMEncoding
    • MGLTileSourceOptionMaximumZoomLevel
    • MGLTileSourceOptionMinimumZoomLevel
    • MGLTileSourceOptionTileCoordinateSystem
    • MGLTileSourceOptionTileSize
    • MapboxVersionNumber
    • MapboxVersionString
  • Other Enumerations
    • MGLAttributionInfoStyle
    • MGLCirclePitchAlignment
    • MGLCircleScaleAlignment
    • MGLCircleTranslationAnchor
    • MGLDEMEncoding
    • MGLErrorCode
    • MGLFillExtrusionTranslationAnchor
    • MGLFillTranslationAnchor
    • MGLHillshadeIlluminationAnchor
    • MGLIconAnchor
    • MGLIconPitchAlignment
    • MGLIconRotationAlignment
    • MGLIconTextFit
    • MGLIconTranslationAnchor
    • MGLLightAnchor
    • MGLLineCap
    • MGLLineJoin
    • MGLLineTranslationAnchor
    • MGLMapDebugMaskOptions
    • MGLResourceKind
    • MGLSymbolPlacement
    • MGLTextAnchor
    • MGLTextJustification
    • MGLTextPitchAlignment
    • MGLTextRotationAlignment
    • MGLTextTransform
    • MGLTextTranslationAnchor
    • MGLTileCoordinateSystem
  • Other Protocols
    • MGLComputedShapeSourceDataSource
    • MGLOfflineStorageDelegate
  • Other Type Definitions
    • MGLMapSnapshotCompletionHandler
    • MGLOfflinePackAdditionCompletionHandler
    • MGLOfflinePackRemovalCompletionHandler
    • MGLOfflinePackUserInfoKey
    • MGLShapeSourceOption
    • MGLTileSourceOption
  • Other Functions
    • MGLCoordinateQuadFromCoordinateBounds
    • MGLCoordinateQuadMake
    • MGLMapPointForCoordinate
    • MGLMapPointMake
    • MGLSphericalPositionMake
    • MGLStringFromCoordinateQuad
    • MGLTransitionMake
  • Other Structures
    • MGLCoordinateQuad
    • MGLSphericalPosition
    • MGLTransition

Styling the Map

  • MGLStyle

    The proxy object for the current map style.

    MGLStyle provides a set of convenience methods for changing Mapbox default styles using -[MGLMapView styleURL]. Learn more about Mapbox default styles.

    It is also possible to directly manipulate the current map style via -[MGLMapView style] by updating the style’s data sources or layers.

    Note

    Wait until the map style has finished loading before modifying a map’s style via any of the MGLStyle instance methods below. You can use the -[MGLMapViewDelegate mapView:didFinishLoadingStyle:] or -[MGLMapViewDelegate mapViewDidFinishLoadingMap:] methods as indicators that it’s safe to modify the map’s style.
    See more

    Declaration

    Objective-C

    
    @interface MGLStyle : NSObject

    Swift

    class MGLStyle : NSObject
    View Source on GitHub
  • MGLLight

    An MGLLight object represents the light source for extruded geometries in MGLStyle.

    See more

    Declaration

    Objective-C

    
    @interface MGLLight : NSObject

    Swift

    class MGLLight : NSObject
    View Source on GitHub

© 2014–2018 Mapbox. See license for more details.

Generated by jazzy ♪♫ v0.9.1, a Realm project.